package com.yinile.zc03.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.yinile.zc03.domain.Book;

/**
 * 书的DAO
 */
public interface BookRepository extends JpaRepository<Book, String>,
		JpaSpecificationExecutor<Book> {
	@Query("select t from Book t where t.id in(:bookIds)")
	List<Book> withIds(@Param("bookIds") List<String> bookIds);
}
